<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>${ENV,var="JOB_NAME"}-${BUILD_NUMBER}</title>
</head>

<body leftmargin="8" marginwidth="0" topmargin="8" marginheight="4" offset="0">
	<label> 本邮件由系统自动发出，无需回复！</label>
 <h2> <font color="RoyalBlue">构建结果 - ${BUILD_STATUS}</font></h2>
    <table  border="1"  style="text-align:center;align-content:space-around;">
		<thead style="color:RoyalBlue;text-align:center;padding:0.5cm 1cm 0.5cm 1cm">
    <tr>
		<th style="padding:0.5cm 1cm 0.5cm 1cm">用例总数</th>
      <th style="color:red;padding:0.5cm 1cm 0.5cm 1cm">失败用例数</th>
      <th style="color:ForestGreen;padding:0.5cm 1cm 0.5cm 1cm">通过用例数</th>
	 <th style="color:SlateGray;padding:0.5cm 1cm 0.5cm 1cm">error用例数</th>
    </tr>
  </thead>
	<tbody>
    <tr>
		<td id = 'total'style="padding:0.2cm 1cm 0.2cm 1cm">${TEST_COUNTS, var="total"} </td>
      <td id = 'fail' style="color:red;padding:0.2cm 1cm 0.2cm 1cm">${TEST_COUNTS, var="fail"}</td>
      <td id = 'pass'style="color:ForestGreen;padding:0.2cm 1cm 0.2cm 1cm">${TEST_COUNTS, var="pass"}</td>
		<td id = 'skip' style="color:SlateGray;padding:0.2cm 1cm 0.2cm 1cm">${TEST_COUNTS, var="error"}</td>
    </tr>
  </tbody>
    </table>
   <table>
		<tr>
            <td><br />
                <b>
                    <font color="RoyalBlue">详情:</font>
                </b>
                <ht size="2" width="100%" byte="center" />
            </td>
        </tr>
        <tr>
            <td>
                <ul>
                    <li>项目名称&nbsp;:&nbsp;${PROJECT_NAME}</li>
                    <li>项目URL&nbsp;:&nbsp;<a href="${PROJECT_URL}">${PROJECT_URL}</a></li>
                    <li>构建编号&nbsp;:&nbsp;${BUILD_NUMBER}</li>
                    <li>构建人&nbsp;:&nbsp;${CAUSE}</li>
                    <li>当前构建地址&nbsp;:&nbsp;<a href="${BUILD_URL}">${BUILD_URL}</a></li>
                    <li>当前构建日志&nbsp;:&nbsp;<a href="${BUILD_URL}console">${BUILD_URL}console</a></li>
                </ul>
            </td>
        </tr>
        <tr>
            <td>
				<b>
                <font color="RoyalBlue">构建日志:</font></b>
                <hr size="2" width="100%" byte="center" />
            </td>
        </tr>
        <tr>
            <td><textarea cols="150" rows="30" readonly="readonly" id = 'log'
                    style="font-family: Courier New">${BUILD_LOG,escapeHtml=true}</textarea>
            </td>
        </tr>
		</table>
</body>
</html>

